<template>
  <el-container>
    <el-aside width="200px">
      <el-menu
        default-active="/users"
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        router
      >
        <!-- <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>导航一</span>
          </template>
          <el-menu-item-group>
            <template slot="title">分组一</template>
            <el-menu-item index="1-1">选项1</el-menu-item>
            <el-menu-item index="1-2">选项2</el-menu-item>
          </el-menu-item-group>
          <el-menu-item-group title="分组2">
            <el-menu-item index="1-3">选项3</el-menu-item>
          </el-menu-item-group>
          <el-submenu index="1-4">
            <template slot="title">选项4</template>
            <el-menu-item index="1-4-1">选项1</el-menu-item>
          </el-submenu>
        </el-submenu> -->
        <el-menu-item index="/users">
          <i class="el-icon-menu"></i>
          <span slot="title">用户管理</span>
        </el-menu-item>
        <el-menu-item index="/msbd">
          <i class="el-icon-document"></i>
          <span slot="title">面试宝典</span>
        </el-menu-item>
        <el-menu-item index="/test">
          <i class="el-icon-setting"></i>
          <span slot="title">考试系统</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-container>
      <el-header>
        <h2 style="display: inline-block">Bk管理系统</h2>
        <span style="color:#ccc;float:right">
          用户：situ
          <el-select v-model="select" placeholder="">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </span>
      </el-header>
      <el-main>
        <Nuxt />
      </el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </el-container>
</template>

<script>
export default {
  data(){
    return {
      options:[],
      select:''
    }
  }
};
</script>
<style>
html,
body,
#__nuxt,
#__layout {
  height: 100%;
}

.el-header .el-select .el-input__inner {
  background-color: rgb(136, 155, 170);
  border: none;
  color:#ccc;
  width:30px;
  padding-right:0;
}

.el-header .el-input--suffix .el-input__inner{
  padding-right:0;
}
</style>

<style scoped>
.el-container {
  height: 100%;
}
.el-header,
.el-footer {
  background-color: rgb(136, 155, 170);
  line-height: 60px;
}

.el-aside {
  background-color: #545c64;
}

.el-main {
  background-color: #e9eef3;
  padding:0;
}

.el-menu {
  border-right: none;
}

body > .el-container {
  margin-bottom: 40px;
}


</style>